package classes.multithread;

import java.util.concurrent.Callable;

/**
 * @author : DuJiabao
 * @Date : 2021/2/9 10:10
 * @Project : java_learning
 * @File : null.java
 * @Desc :
 */
public class CallableImpl implements Callable<String> {
  private static int count = 0;
  private final int id;

  public CallableImpl() {
    this.id = count++;
  }

  @Override
  public String call() throws Exception {
    return "id: " + id;
  }
}
